home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java for 3D & VRML Worlds
/
Java for 3d and VRML Worlds.iso
/
world
/
jumanji
/
main.wrl
< prev
next >
Wrap
Text File
|
1996-10-16
|
15KB
|
720 lines
#VRML V2.0 utf8
Background {
backUrl [ "texture/COMP2.JPG" ]
# bottomUrl [ "texture/COMP2.JPG" ]
frontUrl [ "texture/COMP2.JPG" ]
leftUrl [ "texture/COMP2.JPG" ]
rightUrl [ "texture/COMP2.JPG" ]
# topUrl [ "texture/COMP2.JPG" ]
}
NavigationInfo {
headlight FALSE
}
DEF CHANGECAM Transform {
children [
DEF CAMERA Viewpoint {
position 0 50 200
}
]
}
DEF PROX ProximitySensor {
center 0 0 0
size 500 500 500
enabled TRUE
}
DEF VERTBOX Transform {
children [
DEF HORIZBOX Transform {
children [
DEF leftBox Transform {
translation -15 2.5 0
children [
Inline { url "left.wrl" }
]
}
DEF rightBox Transform {
translation 15 2.5 0
children [
Inline { url "right.wrl" }
]
}
DEF centerBox Transform {
children [
Inline { url "center.wrl" }
]
}
Transform {
scale 1.2 1.2 1.2
children [
Transform {
translation -15 4 -20
children [
# Viewpoint {
# position 15.5 0 30
# fieldOfView 0.785398
}
Shape {
appearance Appearance {
material DEF gemMat Material {
diffuseColor 0 1 0
specularColor 1 1 0
shininess 1
}
}
geometry IndexedFaceSet {
coord Coordinate {
point [
11.35 -4 19.8,
11.35 -4 20.8,
12.35 -3.5 20.8,
12.35 -3.5 19.8,
11.85 -4 18.3,
13.35 -4 16.8,
14.85 -3.5 17.3,
14.85 -4 16.3,
15.85 -4 16.3,
15.85 -3.5 17.3,
17.35 -4 16.8,
18.85 -4 18.3,
18.35 -3.5 19.8,
19.35 -4 19.8,
19.35 -4 20.8,
18.35 -3.5 20.8,
18.85 -4 22.3,
17.35 -4 23.8,
15.85 -3.5 23.3,
15.85 -4 24.3,
14.85 -4 24.3,
14.85 -3.5 23.3,
13.35 -4 23.8,
11.85 -4 22.3,
13.85 -3 20.3,
15.35 -3 18.8,
16.85 -3 20.3,
15.35 -3 21.8
]
}
coordIndex [
0, 1, 2, 3, -1,
4, 0, 3, -1,
5, 4, 3, 6, -1,
7, 5, 6, -1,
8, 7, 6, 9, -1,
10, 8, 9, -1,
11, 10, 9, 12, -1,
13, 11, 12, -1,
14, 13, 12, 15, -1,
16, 14, 15, -1,
17, 16, 15, 18, -1,
19, 17, 18, -1,
20, 19, 18, 21, -1,
22, 20, 21, -1,
23, 22, 21, 2, -1,
1, 23, 2, -1,
3, 2, 24, -1,
6, 3, 24, 25, -1,
9, 6, 25, -1,
12, 9, 25, 26, -1,
15, 12, 26, -1,
18, 15, 26, 27, -1,
21, 18, 27, -1,
2, 21, 27, 24, -1,
24, 27, 26, 25, -1
]
normalPerVertex TRUE
# ccw FALSE
# solid FALSE
convex TRUE
creaseAngle 0.5
}
}
]
}
]
}
]
}
]
}
DEF DICE Transform {
translation -25 10 0
scale 7 7 7
children [
DEF diceTS TouchSensor { }
Shape {
appearance Appearance {
material Material {
emissiveColor 0.7 0.7 0.7
}
texture ImageTexture {
url [ "texture/alldice.gif" ]
}
}
geometry IndexedFaceSet {
coord Coordinate3 {
point [
.1 .1 .1,
.1 .1 -.1,
.1 -.1 .1,
.1 -.1 -.1,
-.1 .1 .1,
-.1 .1 -.1,
-.1 -.1 .1,
-.1 -.1 -.1
]
}
texCoord TextureCoordinate {
point [
0.0 0.5,
0.333 0.5,
0.333 1.0,
0.0 1.0,
]
}
coordIndex [
2, 0, 4, 6, -1,
]
texCoordIndex [
1, 2, 3, 0, -1,
]
}
}
Shape {
appearance Appearance {
material Material {
emissiveColor 0.7 0.7 0.7
}
texture ImageTexture {
url [ "texture/alldice.gif" ]
}
}
geometry IndexedFaceSet {
coord Coordinate3 {
point [
.1 .1 .1,
.1 .1 -.1,
.1 -.1 .1,
.1 -.1 -.1,
-.1 .1 .1,
-.1 .1 -.1,
-.1 -.1 .1,
-.1 -.1 -.1
]
}
texCoord TextureCoordinate {
point [
0.333 0.5,
0.666 0.5,
0.666 1.0,
0.333 1.0
]
}
coordIndex [
0, 1, 5, 4, -1,
]
texCoordIndex [
1, 2, 3, 0, -1,
]
}
}
Shape {
appearance Appearance {
material Material {
emissiveColor 0.7 0.7 0.7
}
texture ImageTexture {
url [ "texture/alldice.gif" ]
}
}
geometry IndexedFaceSet {
coord Coordinate3 {
point [
.1 .1 .1,
.1 .1 -.1,
.1 -.1 .1,
.1 -.1 -.1,
-.1 .1 .1,
-.1 .1 -.1,
-.1 -.1 .1,
-.1 -.1 -.1
]
}
texCoord TextureCoordinate {
point [
0.666 0.5,
1.0 0.5,
1.0 1.0,
0.666 1.0
]
}
coordIndex [
2, 3, 1, 0, -1,
]
texCoordIndex [
0, 1, 2, 3, -1,
]
}
}
Shape {
appearance Appearance {
material Material {
emissiveColor 0.7 0.7 0.7
}
texture ImageTexture {
url [ "texture/alldice.gif" ]
}
}
geometry IndexedFaceSet {
coord Coordinate3 {
point [
.1 .1 .1,
.1 .1 -.1,
.1 -.1 .1,
.1 -.1 -.1,
-.1 .1 .1,
-.1 .1 -.1,
-.1 -.1 .1,
-.1 -.1 -.1
]
}
texCoord TextureCoordinate {
point [
0.0 0.0,
0.333 0.0,
0.333 0.5,
0.0 0.5
]
}
coordIndex [
4, 5, 7, 6, -1,
]
texCoordIndex [
2, 3, 0, 1, -1,
]
}
}
Shape {
appearance Appearance {
material Material {
emissiveColor 0.7 0.7 0.7
}
texture ImageTexture {
url [ "texture/alldice.gif" ]
}
}
geometry IndexedFaceSet {
coord Coordinate3 {
point [
.1 .1 .1,
.1 .1 -.1,
.1 -.1 .1,
.1 -.1 -.1,
-.1 .1 .1,
-.1 .1 -.1,
-.1 -.1 .1,
-.1 -.1 -.1
]
}
texCoord TextureCoordinate {
point [
0.333 0.0,
0.666 0.0,
0.666 0.5,
0.333 0.5
]
}
coordIndex [
5, 1, 3, 7, -1,
]
texCoordIndex [
2, 3, 0, 1, -1,
]
}
}
Shape {
appearance Appearance {
material Material {
emissiveColor 0.7 0.7 0.7
}
texture ImageTexture {
url [ "texture/alldice.gif" ]
}
}
geometry IndexedFaceSet {
coord Coordinate3 {
point [
.1 .1 .1,
.1 .1 -.1,
.1 -.1 .1,
.1 -.1 -.1,
-.1 .1 .1,
-.1 .1 -.1,
-.1 -.1 .1,
-.1 -.1 -.1
]
}
texCoord TextureCoordinate {
point [
0.666 0.0,
1.0 0.0,
1.0 0.5,
0.666 0.5
]
}
coordIndex [
6, 7, 3, 2, -1
]
texCoordIndex [
1, 2, 3, 0, -1,
]
}
}
]
}
Billboard {
children [
DEF LionT Transform {
translation 999 999 999
children [
Shape {
appearance Appearance {
material Material {
emissiveColor 0.8 0.8 0.8
}
texture ImageTexture {
url [ "texture/lionanm5.gif" ]
}
}
geometry IndexedFaceSet {
coord Coordinate {
point [
-2.25 2.25 0,
-2.25 -2.25 0,
2.25 -2.25 0,
2.25 2.25 0,
]
}
coordIndex [ 0, 1, 2, 3, -1, 0, 3, 2, 1, -1, ]
}
}
]
}
]
}
DEF oi OrientationInterpolator {
key [ 0, 1 ]
keyValue [ 0 0 1 -3.14, 0 0 1 -0.001]
}
DEF oi2 OrientationInterpolator {
key [ 0, 1 ]
keyValue [ 0 0 1 3.14, 0 0 1 0.001]
}
DEF vertboxOI OrientationInterpolator {
key [ 0, 1 ]
keyValue [ 1 0 0 1.57, 1 0 0 0 ]
}
DEF horizboxOI OrientationInterpolator {
key [ 0, 1 ]
keyValue [ 0 1 0 -1.57, 1 0 0 0 ]
}
DEF boxMove PositionInterpolator {
key [ 0, 1 ]
keyValue [ 0 50 150, 0 0 0 ]
}
DEF cameraMove PositionInterpolator {
key [ 0, 0.3, 1 ]
keyValue [ 0 50 200, 0 50 200, 0 2 15 ]
}
DEF boxOpen TimeSensor {
cycleInterval 5
enabled TRUE
loop FALSE
stopTime -1
}
DEF masterTime TimeSensor {
cycleInterval 0.5
enabled TRUE
loop TRUE
stopTime -1
}
DEF gemGlowTime TimeSensor {
cycleInterval 2
enabled TRUE
loop TRUE
stopTime -1
}
DEF OPENSCRIPT Script {
url "open.class"
eventIn SFTime tick
eventIn SFVec3f sandInput
eventIn SFVec3f quakeInput
eventIn SFFloat disasterFraction
eventIn SFTime setDisaster
eventIn SFVec3f personMoved
eventOut SFTime triggerOpen
eventOut SFVec3f camMove
eventOut SFFloat sandFraction
eventOut SFFloat lionFraction
eventOut SFFloat quakeFraction
eventOut MFVec3f lionPath
}
DEF gemGlowSI ScalarInterpolator {
key [ 0, 0.5, 1 ]
keyValue [ 0.2, 1, 0.2 ]
}
DEF diceDropTime TimeSensor {
cycleInterval 1.3
enabled TRUE
loop FALSE
stopTime -1
}
DEF disasterTime TimeSensor {
cycleInterval 20
enabled TRUE
loop FALSE
stopTime -1
}
DEF diceDropPI PositionInterpolator {
key [ 0, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.1, 0.95, 1 ]
keyValue [ -25 10 0, -25 9.9 0, -25 9.6 0, -25 9.1 0, -25 8.4 0, -25 7.5 0,
-25 6.4 0, -25 5.1 0, -25 3.6 0, -25 1.9 0, -25 0 0 , -25 0 0, -25 10 0]
}
DEF sandPI PositionInterpolator {
key [ 0, 0.98, 1 ]
keyValue [ 0 0 0, 0 -1 0, 0 0 0 ]
}
DEF quakePI PositionInterpolator {
key [ 0
0.0126582
0.0253165
0.0379747
0.0506329
0.0632911
0.0759494
0.0886076
0.101266
0.113924
0.126582
0.139241
0.151899
0.164557
0.177215
0.189873
0.202532
0.21519
0.227848
0.240506
0.253165
0.265823
0.278481
0.291139
0.303797
0.316456
0.329114
0.341772
0.35443
0.367089
0.379747
0.392405
0.405063
0.417722
0.43038
0.443038
0.455696
0.468354
0.481013
0.493671
0.506329
0.518987
0.531646
0.544304
0.556962
0.56962
0.582278
0.594937
0.607595
0.620253
0.632911
0.64557
0.658228
0.670886
0.683544
0.696203
0.708861
0.721519
0.734177
0.746835
0.759494
0.772152
0.78481
0.797468
0.810127
0.822785
0.835443
0.848101
0.860759
0.873418
0.886076
0.898734
0.911392
0.924051
0.936709
0.949367
0.962025
0.974684
0.987342
1 ]
keyValue [ 0 -0.496516 0,
0 0.1532 0,
0 -0.488295 0,
0 -0.172912 0,
0 0.191686 0,
0 -0.318189 0,
0 0.356608 0,
0 -0.495612 0,
0 -0.020344 0,
0 -0.00910741 0,
0 -0.311154 0,
0 0.12913 0,
0 0.344839 0,
0 0.0340245 0,
0 -0.371282 0,
0 0.106329 0,
0 0.330617 0,
0 0.25197 0,
0 -0.267307 0,
0 0.293995 0,
0 0.342842 0,
0 0.408217 0,
0 0.277394 0,
0 -0.134701 0,
0 0.377156 0,
0 0.436524 0,
0 -0.466038 0,
0 -0.440386 0,
0 -0.386561 0,
0 -0.271212 0,
0 0.490181 0,
0 0.205346 0,
0 0.316715 0,
0 0.0991545 0,
0 -0.222471 0,
0 0.376943 0,
0 0.330477 0,
0 -0.438316 0,
0 -0.296113 0,
0 -0.378275 0,
0 0.138846 0,
0 0.0539737 0,
0 0.279931 0,
0 -0.140841 0,
0 -0.491834 0,
0 0.328036 0,
0 -0.0417039 0,
0 0.315968 0,
0 0.0965228 0,
0 0.412314 0,
0 0.479401 0,
0 -0.285086 0,
0 0.141429 0,
0 0.325116 0,
0 -0.263615 0,
0 0.383389 0,
0 0.401263 0,
0 0.0898543 0,
0 -0.0661085 0,
0 0.48989 0,
0 -0.0647041 0,
0 -0.43368 0,
0 -0.478475 0,
0 -0.247765 0,
0 0.0600388 0,
0 0.169893 0,
0 0.432566 0,
0 -0.309149 0,
0 -0.0836819 0,
0 0.201899 0,
0 0.0521317 0,
0 -0.176298 0,
0 -0.478058 0,
0 0.259473 0,
0 0.0762267 0,
0 0.116431 0,
0 -0.031029 0,
0 0.0321631 0,
0 0.00423124 0,
0 0 0,
]
}
DEF lionPI PositionInterpolator {
key [ 0, 0.02, 0.98, 1 ]
}
ROUTE boxOpen.fraction_changed TO oi.set_fraction
ROUTE boxOpen.fraction_changed TO oi2.set_fraction
ROUTE oi.value_changed TO leftBox.set_rotation
ROUTE oi2.value_changed TO rightBox.set_rotation
ROUTE OPENSCRIPT.triggerOpen TO boxOpen.set_startTime
ROUTE masterTime.cycleTime TO OPENSCRIPT.tick
ROUTE boxOpen.fraction_changed TO vertboxOI.set_fraction
ROUTE vertboxOI.value_changed TO VERTBOX.set_rotation
ROUTE boxOpen.fraction_changed TO horizboxOI.set_fraction
ROUTE horizboxOI.value_changed TO HORIZBOX.set_rotation
ROUTE boxOpen.fraction_changed TO boxMove.set_fraction
ROUTE boxMove.value_changed TO VERTBOX.set_translation
ROUTE boxOpen.fraction_changed TO cameraMove.set_fraction
ROUTE cameraMove.value_changed TO CAMERA.set_position
ROUTE gemGlowTime.fraction_changed TO gemGlowSI.set_fraction
ROUTE gemGlowSI.value_changed TO gemMat.set_ambientIntensity
ROUTE diceTS.touchTime TO diceDropTime.set_startTime
ROUTE disasterTime.fraction_changed TO diceDropPI.set_fraction
ROUTE diceDropPI.value_changed TO DICE.set_translation
ROUTE diceTS.touchTime TO disasterTime.set_startTime
ROUTE disasterTime.cycleTime TO OPENSCRIPT.setDisaster
ROUTE disasterTime.fraction_changed TO OPENSCRIPT.disasterFraction
ROUTE OPENSCRIPT.sandFraction TO sandPI.set_fraction
ROUTE sandPI.value_changed TO OPENSCRIPT.sandInput
ROUTE OPENSCRIPT.camMove TO CHANGECAM.set_translation
ROUTE PROX.position_changed TO OPENSCRIPT.personMoved
ROUTE OPENSCRIPT.lionPath TO lionPI.set_keyValue
ROUTE OPENSCRIPT.lionFraction TO lionPI.set_fraction
ROUTE lionPI.value_changed TO LionT.set_translation
ROUTE quakePI.value_changed TO OPENSCRIPT.quakeInput
ROUTE OPENSCRIPT.quakeFraction TO quakePI.set_fraction